package com.zero.manager_following.exception;

import lombok.Getter;

/**
 * 功能：服务层自定义异常类
 * 作者：zero
 * 日期：2024/9/13 21:56
 */

@Getter
public class ServiceException extends RuntimeException{

    private final String code;

    public ServiceException(String msg){
        super(msg);
        this.code = "500";
    }
    public ServiceException(String code, String msg){
        super(msg);
        this.code = code;
    }

}
